import random


def start_game():
    score=random.randint(10,100)
    print(f'本次游戏得分为：{score}')
    if score>Game.top_score:
        Game.top_score=score


class Game:
    # 类属性
    top_score=0
    def __init__(self,name):
        # 定义实例属性
        self.name=name

    @staticmethod
    def show_help():
        print('这是游戏的帮助信息')

    @classmethod
    def show_top_score(cls):
        print(f'游戏的最高分为:{cls.top_score}')


xw = Game('小王')
start_game()
xw.show_top_score()
start_game()
xw.show_top_score()
xw.show_help()

e = 1000
f = 1000
print(e is f)


